﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace BookManage
{
    class Program
    {
        static void Main(string[] args)
        {
            //定义图书管理系统中的三个类：用户类、图书类、出版社类，有哪些字段去参考之前文档。
            //各个类中，再写一个打印信息的方法。
            //需要提交类和主类中调用的代码。

            //用户类
            Users use = new Users();
            use.UserName = "张三";
            use.UserPassWord = 123;
            use.UserDep = "开发部";
            use.UserPost = "程序员";
            use.GetUsers();
            Console.WriteLine();

            Users use2 = new Users("李四", 456, "销售部", "销售员");
            use2.GetUsers();
            Console.WriteLine();

            //图书类
            Books book = new Books();
            book.BookISBN = 54554;
            book.BookName = "啊啊啊";
            book.BookPrice = 25;
            book.BookPublic = "闽大";
            book.BookAuthor = "张三";
            book.GetBooks();
            Console.WriteLine();

            Books book2 = new Books(45698,"abc",20,"md","李四");
            book2.GetBooks();
            Console.WriteLine();

            //出版社类
            Publics publics = new Publics();
            publics.PublicName = "闽大";
            publics.PublicAddress = "闽大路8号";
            publics.PublicCont = "张三";
            publics.GetPublics();
            Console.WriteLine();

            Publics publics2 = new Publics("md","md...","李四");
            publics2.GetPublics();
            Console.WriteLine();
        }
    }
}
